# -*- coding=utf-8 -*-
"""
任务02： 计算三个同学的总成绩,
进化：引入变量，构造通用求总成绩的结构
"""

# 创建三个变量分别指向3个成绩，
a = 0;  b = 0; c = 0
# 总成绩：a*0.15 + b*0.15 + c*0.7  # 0

# 学号：2010040401
a = 70; b = 68; c = 80
score_1 = a*0.15 + b*0.15 + c*0.7

# 学号：2010040402
a = 66; b = 62; c = 42
score_2 = a*0.15 + b*0.15 + c*0.7

# 学号：2010040403
a = 84; b = 76; c = 90
score_3 = a*0.15 + b*0.15 + c*0.7

score_1 = round(score_1,1)
score_2 = round(score_2,1)
score_3 = round(score_3,1)

print("学号<2010040401>的总成绩是{0}".format(score_1))
print("学号<2010040402>的总成绩是{0}".format(score_2))
print("学号<2010040403>的总成绩是{0}".format(score_3))
